package com.huitone.gddw.service.dto.system;

import java.util.Date;

/**
 * 用户管理 DTO 对象
 * @author wuluodan
 *
 */
public class UsersDTO {

	private String userId;
	
	private String userName;

    private String sex;
    
    private String phoneNumber;

    private String mailBox;
    
    private String deptId;
    
    private String deptName;
    
    private String roleIds;
    
    private String roleNames;
    
    private Date insertTime;
    
    private String status = "1";
    
    private String remark;
    
    private String pwd;
    
    private String onlineStatus;
    
    private String onlineStatusStr;

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}
	
	public String getSexStr() {
		if (null == this.sex) return "未知";
		if (this.sex.equals("1")) return "女";
		if (this.sex.equals("2")) return "男";
		return "未知";
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public String getMailBox() {
		return mailBox;
	}

	public void setMailBox(String mailBox) {
		this.mailBox = mailBox;
	}

	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getRoleIds() {
		return roleIds;
	}

	public void setRoleIds(String roleIds) {
		this.roleIds = roleIds;
	}

	public String getRoleNames() {
		return roleNames;
	}

	public void setRoleNames(String roleNames) {
		this.roleNames = roleNames;
	}

	public Date getInsertTime() {
		return insertTime;
	}

	public void setInsertTime(Date insertTime) {
		this.insertTime = insertTime;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getStatusStr() {
		if (null == this.status) return "未知";
		if (this.status.equals("0")) return "冻结";
		if (this.status.equals("1")) return "有效";
		return "未知";
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public String getOnlineStatus() {
		return onlineStatus;
	}

	public void setOnlineStatus(String onlineStatus) {
		this.onlineStatus = onlineStatus;
	}

	public String getOnlineStatusStr() {
		if (this.onlineStatus != null && this.onlineStatus.equals("1")) 
			return "在线";
		return "离线";
	}

	public void setOnlineStatusStr(String onlineStatusStr) {
		this.onlineStatusStr = onlineStatusStr;
	}
	
}
